package com.qa.pojo.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 用户
 * id;
 * nickname;
 * mail;
 * password;
 * avatar;
 * status;
 *
 * @author 徐
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
    /**
     * 用户id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 用户昵称
     */
    private String nickname;
    /**
     * 用户邮箱
     */
    private String mail;
    /**
     * 用户密码
     */
    private String password;
    /**
     * 用户头像
     */
    private String avatar;
    /**
     * 用户状态
     */
    private Integer status;
}
